//
//  BDPayDefaultTableViewCell.m
//  BadBoy
//
//  Created by wen on 2017/7/10.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import "BDPayDefaultTableViewCell.h"

@implementation BDPayDefaultTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    style = UITableViewCellStyleValue1;
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
    }
    return self;
}

- (void)configeWithModel:(id)model{
    self.textLabel.text = model[@"title"];
    self.detailTextLabel.text = model[@"subTitle"];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.textLabel.font = [UIFont systemFontOfSize:15];
    self.textLabel.textColor = [UIColor colorWithHexString:@"#1c1c1c"];
    [self.textLabel sizeToFit];
    self.textLabel.left = 10;
    self.textLabel.centerY = self.height / 2.0;
    
    self.detailTextLabel.font = [UIFont systemFontOfSize:16];
    self.detailTextLabel.textColor = [UIColor colorWithHexString:@"#ff4f00"];
    [self.detailTextLabel sizeToFit];
    self.detailTextLabel.right = self.width - 10;
    self.detailTextLabel.centerY = self.height / 2.0;
}
@end
